<?php

namespace App\Http\Requests\Admin\Ad;

use App\Http\Requests\Request;

class UpdateAdPositionRequest extends Request
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * 验证规则
     *
     * @return array
     */
    public function rules()
    {
        return [
            'position_name' => 'required|max:50',
        ];
    }

    /**
     * 验证信息
     * @return array
     */

    public function messages()
    {
        return [
            'position_name.required' => '请填写广告位置名称',
            'position_name.max'  => '广告位置名称必须小于50字符',

        ];
    }

}
